package com.vdong.common.oauth.common.enums;

public enum AuditStatusConstant {
    //审核成功
    Success("审核成功", 0),
    //审核失败
    failure("审核失败", 1),
    //审核中
    InReview("审核中", 2);

    private String state;
    private Integer value;

    private AuditStatusConstant(String state, Integer value) {
        this.state = state;
        this.value = value;
    }

    public static AuditStatusConstant getEnum(int value) {
        for (AuditStatusConstant requisitionConstant : AuditStatusConstant.values()) {
            if (requisitionConstant.getValue() == value) {
                return requisitionConstant;
            }
        }
        return null;
    }

    public Integer getValue() {
        return value;
    }

    public String getState() {
        return state;
    }
}
